package com.sugou.model.commons;

import java.io.InputStream;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.sugou.model.core.base.LongIdEntity;

/**
 * 大数据基本类型
 * @author 童弘成
 *
 */
@MappedSuperclass
public abstract class LobLibrary extends LongIdEntity {
	private static final long serialVersionUID = -966910607676814167L;
	/**
	 * 散列效验吗。
	 */
	@Column(length=64,nullable=false)
	private String hashcode;
	
	/**
	 * 实体数据长度
	 */
	@Column(nullable=false)
	private Long bodySize;

	public String getHashcode() {
		return hashcode;
	}

	public void setHashcode(String hashcode) {
		this.hashcode = hashcode;
	}

	public Long getBodySize() {
		return bodySize;
	}

	public void setBodySize(Long bodySize) {
		this.bodySize = bodySize;
	}
	
	public abstract InputStream getBodyStream();
	
}
